<?php
class Zend_View_Helper_Option
{
	public $view;
	public $t;

	public function setView(Zend_View_Interface $view)
	{
		$this->view = $view;
		$this->t = Zend_Registry::get('Zend_Translate');
	}

	public function option($type, $url)
	{
		$elementId = $type . '_' . str_replace("/", "_", $url);
		$option = "
		<a id=\"{$elementId}\" class=\"option\" href=\"{$this->view->baseUrl()}/{$url}\" title=\"{$this->t->_($type)}\">
			<img src=\"{$this->view->baseUrl()}/images/system/{$type}.png\" alt=\"{$this->t->_($type)}\"/>
		</a>";

		return $option;
	}
}